<include file="public@header"/>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Case/index')}">案例管理</a></li>
        <li class="active"><a href="{:url('Case/add')}">添加案例</a></li>
    </ul>
    <form action="{:url('Case/add')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="100px;">案例名称<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" name="title" placeholder="请输入案例名称"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="15%">分类<span class="form-required">*</span></th>
                        <td>
                            <select class="form-control" name="cate_id">
                                <option value="">请选择分类</option>
                                <foreach name="cateList" item="c">
                                    <option value="{$c.cate_id}">{$c.cate_name}</option>
                                </foreach>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px;">url<span class="form-required">填写url自动跳转</span></th>
                        <td>
                            <input class="form-control" type="text" name="url" placeholder="请输入完整url 请用http://开头 "/>
                        </td>
                    </tr>
                    <tr>
                        <th>服务领域</th>
                        <td>
                            <input class="form-control" type="text" name="service_area" placeholder="请输入服务领域"/>
                        </td>
                    </tr>
                    <tr>
                        <th>产品类型</th>
                        <td>
                            <input class="form-control" type="text" name="product_type" placeholder="请输入产品类型"/>
                        </td>
                    </tr>
                    <tr>
                        <th>企业现状</th>
                        <td>
                            <input class="form-control" type="text" name="enterprises" placeholder="请输入企业现状"/>
                        </td>
                    </tr>
                    <tr>
                        <th>解决方案</th>
                        <td>
                            <input class="form-control" type="text" name="programme" placeholder="请输入企业方案"/>
                        </td>
                    </tr>

                    <tr>
                        <th>企业痛点</th>
                        <td>
                            <input class="form-control" type="text" name="spot" placeholder="请输入企业痛点"/>
                        </td>
                    </tr>

                    <tr>
                        <th>使用成果</th>
                        <td>
                            <input class="form-control" type="text" name="achievements" placeholder="请输入使用成果"/>
                        </td>
                    </tr>


                    <tr>
                        <th>描述</th>
                        <td>
                            <textarea class="form-control" name="desc" style="height: 50px;"
                                      placeholder="请填写摘要"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>内容</th>
                        <td>
                            <script type="text/plain" id="content" name="content"></script>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
                        <a class="btn btn-default" href="javascript:history.back(-1)">返回</a>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <table class="table table-bordered">
                    <tr>
                        <th><b>缩略图</b></th>
                    </tr>
                    <tr>
                        <td>
                            <div style="text-align: center;">
                                <input type="hidden" name="image" id="thumbnail" value="">
                                <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
                                    <img src="/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png"
                                         id="thumbnail-preview"
                                         width="135" style="cursor: pointer"/>
                                </a>
                                <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th><b>二维码</b></th>
                    </tr>
                    <tr>
                        <td>
                            <div style="text-align: center;">
                                <input type="hidden" name="qr" id="thumbnail1" value="">
                                <a href="javascript:uploadOneImage('图片上传','#thumbnail1');">
                                    <img src="/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png"
                                         id="thumbnail1-preview"
                                         width="135" style="cursor: pointer"/>
                                </a>
                                <input type="button" class="btn btn-sm btn-cancel-thumbnail1" value="取消图片">
                            </div>
                        </td>
                    </tr>
                </table>

            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/static/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');
        try {
            editorcontent.sync();
        } catch (err) {
        }
    })
</script>
</body>
</html>
